//
//  HskinManager.h
//  HMusicPlayer
//
//  Created by Hament on 14/9/11.
//  Copyright (c) 2014年 HJ. All rights reserved.
//







#import <Foundation/Foundation.h>

@interface HskinManager : NSObject

@property (nonatomic,strong) NSMutableDictionary * currentConfigDic;






//---------version
@property (nonatomic,strong) NSString * currentSkinVersion; //
@property (nonatomic,strong) NSString * skinMakerVersion; // basic which skinMaker

//---------string
@property (nonatomic,strong) NSString * uid;//唯一标识符,来定位使用哪套皮肤
@property (nonatomic,strong) NSString * author;
@property (nonatomic,strong) NSString * skinName;
@property (nonatomic,strong) NSString * skinDes;
@property (nonatomic,strong) NSString * gengrateDate;
@property (nonatomic,strong) NSString * facebook;
@property (nonatomic,strong) NSString * weibo;
@property (nonatomic,strong) NSString * email;
@property (nonatomic,strong) NSString * twitter;
@property (nonatomic,strong) NSString * QQ;
@property (nonatomic,strong) NSString * weChart;

//---------type

/* templateType(gen_1, spe_1)*/
@property (nonatomic,strong) NSString * templateType;

/*category, maybe get string frome server according categoryType*/
@property (nonatomic,strong) NSString * categoryType;



//---------color

//window
@property (nonatomic,strong) NSColor * titleBarBGColor;
@property (nonatomic,strong) NSColor * titleBarTextColor;//

//控制面板
@property (nonatomic,strong) NSColor * mainPlaneBgColor;//控制面板背景色
@property (nonatomic,strong) NSColor * sliderNormalColor;//进度条
@property (nonatomic,strong) NSColor * sliderHighlightColor;//进度条高亮
@property (nonatomic,strong) NSColor * songTitleColor;//title color
@property (nonatomic,strong) NSColor * lyrcisNormalColor;//lyric n
@property (nonatomic,strong) NSColor * lyrcisHightlightColor;//lyric h

//header
@property (nonatomic,strong) NSColor * headerViewBGColor;// 防止搜索,菜单
@property (nonatomic,strong) NSColor * headerMenuHighlightTextColor;// 防止搜索,菜单
@property (nonatomic,strong) NSColor * headerMenuTextColor;// 防止搜索,菜单

//左边列表
@property (nonatomic,strong) NSColor * leftListGroupCellBGColor;
@property (nonatomic,strong) NSColor * leftListGroupCellTextolor;
@property (nonatomic,strong) NSColor * leftListNormalCellBGColor;
@property (nonatomic,strong) NSColor * leftListNormalCellTextColor;

//右边列表
@property (nonatomic,strong) NSColor * rightListCellBGColor1;
@property (nonatomic,strong) NSColor * rightListCellBGColor2;
@property (nonatomic,strong) NSColor * rightListCellHighlightBGColor;
@property (nonatomic,strong) NSColor * rightListCellTextColor;
@property (nonatomic,strong) NSColor * rightListCellHighlightTextColor;



//---------font





//---------frame





//---------image





//---------linewidth




//-------bool



// default skin style
-(HskinManager*)initWithConfigPath:(NSString*)skinconfigfilepath;


#pragma mark 根据配置文件重新刷新
-(void)reloadWithConfigPath:(NSString*)skinconfigfilepath;

#pragma mark 刷新配置
-(void)reloadConfig;

//根据key名称获取注释
+(NSString * ) getDisplayNameWithKey:(NSString*)thekey;

//根据颜色字符获取nscolor
+(NSColor*)getColorFromColorValue:(NSString*)thecolorValue;

//根据color变成字符
+(NSString * ) getColorStringValueWithColor:(NSColor*)color;

//保存皮肤到文件夹
+(BOOL )saveSkinWithDic:(NSMutableDictionary*)dic toFolderPath:(NSString*)path;

@end
